package com.jiaming.restaurant.api.restaurant.bean.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
public class Restaurant implements Serializable {
    /**
     *
     */
    private Integer id;

    /**
     * 餐馆名称
     */
    private String name;

    /**
     * 餐馆地址
     */
    private String address;

    /**
     * 0:正常;1:关店
     */
    private Integer disable;

    /**
     *
     */
    @JsonProperty(value = "create_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    private static final long serialVersionUID = 1L;
}

